
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useChannelStore = defineStore('channel', () => {
    // 数据
    const channelId = ref(1)

    // 修改数据的方法
    const changeChannel = (id: number) => channelId.value = id

    // 返回给 store 实例
    return { channelId, changeChannel}
})